package com.lzh.chatnote.chat.domain.dto.message;


import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.util.List;


@Builder
@AllArgsConstructor
@NoArgsConstructor
@Data
public class MsgTextDTO {

    @ApiModelProperty("消息内容")
    @NotBlank(message = "内容不能为空")
    @Size(max = 1024,message = "内容太长了，服务器扛不住啊")
    private String content;

    @ApiModelProperty("回复的消息id,如果没有别传就好")
    private Long replyMsgId;

    @ApiModelProperty("@的用户列表,如果没有别传就好")
    @Size(max = 20, message = "一次别艾特这么多人")
    private List<Long> atUserIds;

}
